import 'package:get/get.dart';

class LoginStateController extends GetxController {
  RxBool verifyCodeBtnState = false.obs;
  RxBool verifyCodeState = false.obs;
  RxBool loginBtnState = false.obs;
  RxBool checkBoxFlag = false.obs;
  changeVerifyCodeBtnState(bool state) {
    verifyCodeBtnState.value = state;
  }

  changeVerifyCodeState(bool state) {
    verifyCodeState.value = state;
  }

  changeCheckBoxFlag(bool state) {
    checkBoxFlag.value = state;
  }

  changeLoginBtnState() {
    if (verifyCodeBtnState.value &&
        verifyCodeState.value &&
        checkBoxFlag.value) {
      loginBtnState.value = true;
    } else {
      loginBtnState.value = false;
    }
  }
}
